<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>慕慕手记侧边栏开发</title>
		<style>
			body {
				background-color: #f3f5f6;
			}
			.nav {
				margin-top: 50px;
				margin-left: 100px;
				background-color: #fff;
				width: 105px;
			}
			.nav div {
				padding-top: 20px;
				width: 105px;
				/* height: 100px; */
				text-align: center;
				
			}
			a {
				display: inline-block;
				/* 文字上下居中小技巧 */
				height: 35px;
				line-height: 35px;
				width: 85px;
				text-decoration: none;
				font-size: 14px;
				color: black;
			}
			a:hover{
				color: #3071f2;
			}
			.selected {
				color: #3071f2;
				background-color: #eaf1ff;
			}
		</style>
		
	</head>
	<body>
		<div class="nav">
			<div><a href="">前端开发</a></div>
			<div><a href="" class="selected">后端开发</a></div>
			<div><a href="">云计算/大数据</a></div>
			<div><a href="">移动开发</a></div>
			<div><a href="">人工智能</a></div>
		</div>
		
		
		
	</body>
</html>